package com.csmd.entity;

import com.csmd.springframe.*;

/**
 * @Author gary <498982703@qq.com>
 * @Version V1.0.0
 * @Since 1.0
 * @Date 2020/10/22
 */
@Component("user")
@Scope("prototype")
public class User  implements BeanNameWare, InitializingBean {

    @Autowired
    private People people;

    private String beanName;

    @Override
    public void setBeanName(String name) {
        System.out.println(name);
        this.beanName = name;
    }

    @Override
    public void afterPropertiesSet() {
        System.out.println("初始化");

    }

    public People getPeople() {
        return people;
    }
}
